package com.liuqi.openai.model.input;

import static com.liuqi.openai.util.ValidationUtil.ensureNotNull;

/**
 * 适用于 {@link PromptTemplate} 格式化
 *
 * @author liuqi
 * @date 2025/7/19
 **/
public class Prompt {

    private final String text;

    public Prompt(String text) {
        this.text = ensureNotNull(text, "text");
    }

    public String text() {
        return text;
    }

    @Override
    public String toString() {
        return "Prompt{" +
                "text='" + text + '\'' +
                '}';
    }
}
